package eco2automotive.util;
import java.util.*;
/**  
  * Date formated.
  * @version 1.0
  * @autor Fco. Javier Sánchez Esparza
  *
  */ 
public class TimeControl {
Calendar calendar = Calendar.getInstance();
int hour, minute, seconds,date;
String day;
/**
 * Use the a calendar object. </br>
 * Format of date eg. [Thu May 10 19:38:05 GMT+01:00 2012 - 1336675085277] 
 */
public TimeControl(){
day=(calendar.getTime()).toString()+" - "+calendar.getTimeInMillis();
}
/**
 * 
 * @return String with date formated
 */
public String getFormated(){
return ("["+day+"] ");
}


}
